import request from '@/utils/request'

// 查询成交订单列表
export function listSuccess(query) {
  return request({
    url: '/bussiness/success/list',
    method: 'get',
    params: query
  })
}

// 查询成交订单详细
export function getSuccess(id) {
  return request({
    url: '/bussiness/success/' + id,
    method: 'get'
  })
}

// 新增成交订单
export function addSuccess(data) {
  return request({
    url: '/bussiness/success',
    method: 'post',
    data: data
  })
}

// 修改成交订单
export function updateSuccess(data) {
  return request({
    url: '/bussiness/success',
    method: 'put',
    data: data
  })
}

// 删除成交订单
export function delSuccess(id) {
  return request({
    url: '/bussiness/success/' + id,
    method: 'delete'
  })
}

// 查询统计信息
export function selectTotal(query) {
  return request({
    url: '/bussiness/success/selectTotal',
    method: 'post',
    data: query
  })
}
